package net.xju3_4.dao;

import net.xju3_4.common.utils.JdbcUtilsV1;

public class AdminDao {
    public int changePassword(Integer id, String oldPassword, String newPassword) {
        String sql = "update admin set password = ? where id = ? and password = ?";
        return JdbcUtilsV1.executeUpdate(sql, newPassword, id, oldPassword);
    }
}
